#include"factory.h"


void productA::method()const 
{
	cout << "productA:\n";
}

void productB::method()const
{
	cout << "productB:\n";
}

productA* factoryA::createaProduct() const
{
	return new productA();
}

productB* factoryB::createaProduct() const
{
	return new productB();
}